Revision b66e4833 snf-cyclades-app/synnefo/db/tests.py

b/snf-cyclades-app/synnefo/db/tests.py
192 192
        self.assertTrue(backend.index < 10)
193 193
        self.assertEqual(bnet.mac_prefix, 'aa:bb:c%s' % backend.index)
194 194

  
195
    def test_invalid_mac(self):
196
        network = mfact.NetworkFactory(mac_prefix='zz:bb:c')
197
        backend = mfact.BackendFactory()
198
        self.assertRaises(utils.InvalidMacAddress,
199
                mfact.BackendNetworkFactory, network=network, backend=backend)
200

  
195 201

  
196 202
class BridgePoolTest(TestCase):
197 203
    def test_no_pool(self):

Also available in: Unified diff