def test_cell(self): """Test cell input validation.""" api = cell.API() good = { 'treadmillid': 'treadmlx', 'version': 'devel', 'location': 'ny' } _ok(api.create, 'ny-001-cell', good) _fail(api.create, 'ny-001-cell', _without(good, ['version'])) _fail(api.create, 'ny-001-cell', _without(good, ['treadmillid'])) _fail(api.create, 'ny-001-cell', _without(good, ['location']))
def setUp(self): self.cell = cell.API()