Cable.status to slug (#3569)

This commit is contained in:
Jeremy Stretch
2019-12-10 09:55:10 -05:00
parent 51e1ed9f15
commit dc53a3e94e
8 changed files with 55 additions and 13 deletions

View File

@@ -487,7 +487,11 @@ class CablePathTestCase(TestCase):
self.assertIsNone(interface1.connection_status)
# Third segment
cable3 = Cable(termination_a=self.front_port2, termination_b=self.interface2, status=CONNECTION_STATUS_PLANNED)
cable3 = Cable(
termination_a=self.front_port2,
termination_b=self.interface2,
status=CableStatusChoices.STATUS_PLANNED
)
cable3.save()
interface1 = Interface.objects.get(pk=self.interface1.pk)
self.assertEqual(interface1.connected_endpoint, self.interface2)