File diff 5d5ad00b179b → 509ed963b5e1
conntrackt/tests/test_models.py
Show inline comments
 
@@ -97,7 +97,6 @@ class EntityTest(TestCase):
 

	
 
        self.assertEqual(str(ent), representation)
 

	
 

	
 
    def test_unique_name(self):
 
        """
 
        Test if unique entity name is enforced across same project.
 
@@ -131,11 +130,10 @@ class InterfaceTest(TestCase):
 

	
 
        interface = entity.interface_set.get(pk=1)
 

	
 
        duplicate = Interface(name=interface.name, description = "Duplicate interface.", entity=entity, address="10.10.10.10", netmask="255.255.255.255")
 
        duplicate = Interface(name=interface.name, description="Duplicate interface.", entity=entity, address="10.10.10.10", netmask="255.255.255.255")
 

	
 
        self.assertRaises(IntegrityError, duplicate.save)
 

	
 

	
 
    def test_representation_single(self):
 
        """
 
        Test representation of single IP address.