Add upload definition action in test

Add upload definition action in get_workbook_definition
test, because if definition isn't exist, get request
returns 404, but it's a positive test

Change-Id: I5a3c57e7842fbbc80034226926b2a88141192cd7
This commit is contained in:
Sergey Murashov 2014-06-16 11:20:17 +04:00
parent 6fc45235d1
commit 9e9017bccf

View File

@ -89,6 +89,7 @@ class SanityTests(base.TestCase):
def test_get_workbook_definition(self): def test_get_workbook_definition(self):
self.client.create_obj('workbooks', 'test') self.client.create_obj('workbooks', 'test')
self.obj.append(['workbooks', 'test']) self.obj.append(['workbooks', 'test'])
self.client.upload_workbook_definition('test')
resp, body = self.client.get_workbook_definition('test') resp, body = self.client.get_workbook_definition('test')
self.assertEqual(200, resp.status) self.assertEqual(200, resp.status)