コード例 #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()))
コード例 #4
0
 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'))
コード例 #6
0
 def test_display_value_converts_plot_model(self):
     self.assertEqual('Planting Site', display_name(Plot()))
コード例 #7
0
 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
ファイル: templatetags.py プロジェクト: fagan2888/OTM2
 def test_display_value_passes_string_through(self):
     self.assertEqual('FooBAR', display_name('FooBAR'))