Example #1
0
    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']))
Example #2
0
 def setUp(self):
     self.cell = cell.API()