def test_display_value_converts_model_name(self):
     self.assertEqual('Tree', display_name(Tree()))
 def test_display_value_passes_string_through(self):
     self.assertEqual('FooBAR', display_name('FooBAR'))
 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()))
 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
 def test_display_value_passes_string_through(self):
     self.assertEqual("FooBAR", display_name("FooBAR"))
示例#9
0
 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'))