Skip to content

Commit c5f1e37

Browse files
author
Tobias Hauth
committed
reorder
1 parent 5f9d0cc commit c5f1e37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

swiftype/test_swiftype.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ def test_domain(self):
127127
domain = self.client.domain(self.engine, domain_id)['body']
128128
self.assertEqual(domain['id'], domain_id)
129129

130+
def test_create_domain(self):
131+
url = 'http://www.example.com'
132+
domain_url = self.client.create_domain(self.engine, url)['body']['submitted_url']
133+
self.assertEqual(domain_url, url)
134+
130135
def test_destroy_domain(self):
131136
status = self.client.destroy_domain(self.engine, 'domain_id')['status']
132137
self.assertEqual(status, 204)
@@ -142,11 +147,6 @@ def test_crawl_url(self):
142147
crawled_url = self.client.crawl_url(self.engine, domain_id, url)['body']['url']
143148
self.assertEqual(crawled_url, url)
144149

145-
def test_create_domain(self):
146-
url = 'http://www.example.com'
147-
domain_url = self.client.create_domain(self.engine, url)['body']['submitted_url']
148-
self.assertEqual(domain_url, url)
149-
150150
def __is_expected_search_result(self, request, document_type_count, args=[]):
151151
response = request(self.engine, *(args + ['*']))
152152
self.assertEqual(len(response['body']['records']), document_type_count)

0 commit comments

Comments
 (0)