Commit 3216e67d authored by Ashish's avatar Ashish
Browse files

save

parent fea35c30
......@@ -5,6 +5,9 @@ from djangorest_alchemy.apibuilder import APIModelBuilder
class TestAPIBuilder(unittest.TestCase):
def test_urls(self):
"""
Test basic urls property
"""
class Model(object):
pass
......@@ -12,5 +15,9 @@ class TestAPIBuilder(unittest.TestCase):
class Model2(object):
pass
builder = APIModelBuilder([Model, Model2])
print builder.urls
\ No newline at end of file
class SessionMixin(object):
pass
builder = APIModelBuilder([Model, Model2], SessionMixin)
self.assertIsNotNone(builder.urls)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment