Beispiel #1
0
 def test_free_price(self):
     values = {'display_price': "Free"}
     mock_property_helper = get_mock_app_properties_helper(values)
     # we don't really need a "doc" on second input as we mock the helper
     button = FeaturedTile(mock_property_helper, None)
     self.assertEqual(
         button.price.get_label(), '<span font_desc="10">Free</span>')
Beispiel #2
0
 def test_feature_tile_dup_symbol(self):
     values = {'display_price': 'US$ 1.00' }
     mock_property_helper = get_mock_app_properties_helper(values)
     # we don't really need a "doc" on second input as we mock the helper
     button = FeaturedTile(mock_property_helper, None)
     self.assertEqual(
         button.price.get_label(), '<span font_desc="10">US$ 1.00</span>')
Beispiel #3
0
 def test_app_properties_helper_mock_with_custom_values(self):
     my_defaults = {
         'pkgname': 'diemoldau',
     }
     app_properties_helper = get_mock_app_properties_helper(my_defaults)
     self.assertEqual(app_properties_helper.get_pkgname(None), "diemoldau")
Beispiel #4
0
 def test_app_properties_helper_mock_with_defaults(self):
     app_properties_helper = get_mock_app_properties_helper()
     self.assertEqual(app_properties_helper.get_pkgname(None), "apkg")
Beispiel #5
0
 def test_app_properties_helper_mock_with_custom_values(self):
     my_defaults = {"pkgname": "diemoldau"}
     app_properties_helper = get_mock_app_properties_helper(my_defaults)
     self.assertEqual(app_properties_helper.get_pkgname(None), "diemoldau")
Beispiel #6
0
 def test_app_properties_helper_mock_with_defaults(self):
     app_properties_helper = get_mock_app_properties_helper()
     self.assertEqual(app_properties_helper.get_pkgname(None), "apkg")