コード例 #1
0
 def test_two_models(self):
     data = get_models_to_output("appone.SampleModel","appone.AnotherModel",
                                 'apptwo.SampleModelTwo')
     self.assertEquals(data.keys(), ['appone', 'apptwo'])
     self.assertEquals(data['appone'], [SampleModel, AnotherModel])
     self.assertEquals(data['apptwo'], [SampleModelTwo])
コード例 #2
0
 def test_one_app(self):
     data = get_models_to_output('apptwo')
     self.assertEquals(data.keys(), [ 'apptwo'])
     self.assertEquals(data['apptwo'], [SampleModelTwo])
コード例 #3
0
 def test_one_model(self):
     data = get_models_to_output("appone.SampleModel")
     self.assertEquals(data.keys(), ['appone'])
     self.assertEquals(data['appone'], [SampleModel])