def test_get_index(self): """ Tests `get_index` method returns unit url. """ children = self.sequential.children self.assertEqual(0, helpers.get_index(unicode(self.vertical.location), children)) self.assertEqual(1, helpers.get_index(unicode(self.vertical_with_container.location), children))
def test_get_index(self): """ Tests `get_index` method returns unit url. """ children = self.sequential.children self.assertEqual(0, helpers.get_index(unicode(self.vertical.location), children)) self.assertEqual(1, helpers.get_index(unicode(self.vertical_with_container.location), children))