예제 #1
0
 def test_display_value_converts_model_name(self):
     self.assertEqual('Tree', display_name(Tree()))
예제 #2
0
 def test_display_value_passes_string_through(self):
     self.assertEqual('FooBAR', display_name('FooBAR'))
예제 #3
0
 def test_display_value_converts_plot_model(self):
     self.assertEqual('Planting Site', display_name(Plot()))
 def test_display_value_converts_model_name(self):
     self.assertEqual('Tree', display_name(Tree()))
예제 #5
0
 def test_display_value_converts_string_plot(self):
     self.assertEqual('Planting Site', display_name('plot'))
 def test_display_value_converts_plot_model(self):
     self.assertEqual('Planting Site', display_name(Plot()))
 def test_display_value_converts_string_plot(self):
     self.assertEqual('Planting Site', display_name('Plot'))
예제 #8
0
파일: templatetags.py 프로젝트: heath/OTM2
 def test_display_value_passes_string_through(self):
     self.assertEqual("FooBAR", display_name("FooBAR"))
예제 #9
0
파일: templatetags.py 프로젝트: heath/OTM2
 def test_display_value_converts_string_plot(self):
     self.assertEqual("Planting Site", display_name("plot"))
예제 #10
0
 def test_display_value_passes_string_through(self):
     self.assertEqual('FooBAR', display_name('FooBAR'))