Exemplo n.º 1
0
 def test_render_edit(self):
     ases = AS.objects.iterator()
     as_a = next(ases)
     as_b = next(ases)
     link = Link.objects.create_from_ases(Link.PROVIDER, as_a, as_b)
     form = LinkAdminForm(instance=link)
     self.assertIsNotNone(form.as_table())
Exemplo n.º 2
0
 def test_render_create(self):
     form = LinkAdminForm()
     self.assertIsNotNone(form.as_table())
Exemplo n.º 3
0
 def test_render_edit(self):
     as_a = AS.objects.first()
     as_b = AS.objects.last()
     link = Link.objects.create_from_ases(Link.PROVIDER, as_a, as_b)
     form = LinkAdminForm(instance=link)
     self.assertIsNotNone(form.as_table())