def test_cls_get_url_with_no_id(self):
     url = BaseEndPoint.get_url()
     self.assertEqual(url, 'https://example.com/api/v2/an-endpoint')
 def test_cls_get_url_with_no_id(self):
     url = BaseEndPoint.get_url()
     self.assertEqual(url, 'https://example.com/api/v2/an-endpoint')
 def test_get_url_with_id(self):
     obj = BaseEndPoint(id=1)
     self.assertEqual(obj.get_url(), 'https://example.com/api/v2/an-endpoint/1')
 def test_get_url_with_id(self):
     obj = BaseEndPoint(id=1)
     self.assertEqual(obj.get_url(),
                      'https://example.com/api/v2/an-endpoint/1')