Skip to content

Commit

Permalink
Adding test for circuit_termination repr
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoody committed Aug 3, 2018
1 parent 5b11b19 commit 111185e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_circuits.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,11 @@ class CircuitTypeTestCase(unittest.TestCase, GenericTest):

class CircuitTerminationsTestCase(unittest.TestCase, GenericTest):
name = 'circuit_terminations'

@patch(
'pynetbox.lib.query.requests.get',
return_value=Response(fixture='circuits/circuit_termination.json')
)
def test_repr(self, _):
test = nb.circuit_terminations.get(1)
self.assertEqual(str(test), '123456')

0 comments on commit 111185e

Please sign in to comment.