Skip to content

Commit

Permalink
Fix Unit Test for datamanager is_ready()
Browse files Browse the repository at this point in the history
  • Loading branch information
algorys committed Feb 28, 2018
1 parent c933220 commit 1a2d9f1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/test_data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,15 @@ def test_is_ready(self):
self.assertEqual('Collecting user...', under_test.is_ready())
under_test.update_database('user', {'data': 'test'})

self.assertEqual('Collecting service...', under_test.is_ready())
under_test.update_database('service', {'data': 'test'})

self.assertEqual('Collecting realm...', under_test.is_ready())
under_test.update_database('realm', {'data': 'test'})

self.assertEqual('Collecting timeperiod...', under_test.is_ready())
under_test.update_database('timeperiod', {'data': 'test'})

self.assertEqual('Collecting service...', under_test.is_ready())
under_test.update_database('service', {'data': 'test'})

self.assertEqual('READY', under_test.is_ready())

def test_get_problems(self):
Expand Down

0 comments on commit 1a2d9f1

Please sign in to comment.