def test_update_worker(self): db.update_worker('test') worker = db.get_worker('test') self.assertNotEqual(self.worker['updated_at'], worker['updated_at'])
def test_get_worker(self): worker = db.get_worker('test') self.assertEqual(self.worker['id'], worker['id']) self.assertEqual(self.worker['hostname'], worker['hostname'])
def test_update_worker(self): db.update_worker("test") worker = db.get_worker("test") self.assertNotEqual(self.worker["updated_at"], worker["updated_at"])
def test_get_worker(self): worker = db.get_worker("test") self.assertEqual(self.worker["id"], worker["id"]) self.assertEqual(self.worker["hostname"], worker["hostname"])