<s> import unittest <EOL> class InvalidLangTestCase ( unittest . TestCase ) : <EOL> def test_invalid_childname ( self ) : <EOL> from kivy . lang import Builder , ParserException <EOL> from kivy . factory import FactoryException <EOL> try : <EOL> Builder . load_string ( '''<STR_LIT>''' ) <EOL> self . fail ( '<STR_LIT>' ) <EOL> except ParserException : <EOL> pass <EOL> except FactoryException : <EOL> pass <EOL> def test_invalid_childname_before ( self ) : <EOL> from kivy . lang import Builder , ParserException <EOL> try : <EOL> Builder . load_string ( '''<STR_LIT>''' ) <EOL> self . fail ( '<STR_LIT>' ) <EOL> except ParserException : <EOL> pass </s>
