def test_css_for_up_wrong_limit_key(self):
     css_class = 'padding-100-small-up'
     name = 'padding'
     value = px_to_em('100')
     expected = ''
     css_property = Property(name=name, value=value, priority='')
     breakpoint_parser = BreakpointParser(css_class=css_class, css_property=css_property)
     breakpoint_parser.limit_key = '-only'   # Change to WRONG LIMIT KEY
     css = breakpoint_parser.css_for_up()
     self.assertEqual(css, expected)
 def test_css_for_up_general_usage(self):
     css_class = 'padding-100-small-up'
     name = 'padding'
     value = px_to_em('100')
     expected = (
         '@media only screen and (min-width: 15.0625em) {\n' +
         '\t.padding-100-small-up {\n' +
         '\t\tpadding: 6.25em;\n' +
         '\t}\n' +
         '}\n\n'
     )
     css_property = Property(name=name, value=value, priority='')
     breakpoint_parser = BreakpointParser(css_class=css_class, css_property=css_property)
     css = breakpoint_parser.css_for_up()
     self.assertEqual(css, expected)
 def test_css_for_up_display_custom(self):
     css_class = 'display-720-up'
     name = 'display'
     value = 'none'
     expected = (
         '@media only screen and (max-width: 45.0em) {\n' +
         '\t.display-720-up {\n' +
         '\t\tdisplay: none;\n' +
         '\t}\n' +
         '}\n\n'
     )
     css_property = Property(name=name, value=value, priority='')
     breakpoint_parser = BreakpointParser(css_class=css_class, css_property=css_property)
     css = breakpoint_parser.css_for_up()
     self.assertEqual(css, expected)