|  | 
        
          | php2po(self,
        phpsource,
        phptemplate=None) helper that converts .phperties source to po source without requiring
      files
 | source code |  | 
    |  | 
        
          | convertphp(self,
        phpsource) call the convertphp, return the outputfile
 | source code |  | 
    |  | 
        
          | singleelement(self,
        pofile) checks that the pofile contains a single non-header element, and 
      returns it
 | source code |  | 
    |  | 
        
          | countelements(self,
        pofile) counts the number of non-header entries
 | source code |  | 
    |  | 
        
          | test_simpleentry(self) checks that a simple php entry converts properly to a po entry
 | source code |  | 
    |  | 
        
          | test_convertphp(self) checks that the convertphp function is working
 | source code |  | 
    |  | 
        
          | test_unicode(self) checks that unicode entries convert properly
 | source code |  | 
    |  | 
        
          | test_multiline(self) checks that multiline enties can be parsed
 | source code |  | 
    |  | 
        
          | test_comments_before(self) test to ensure that we take comments from .php and place them in .po
 | source code |  | 
    |  | 
        
          | test_emptyentry(self) checks that empty definitions survives into po file
 | source code |  | 
    |  | 
        
          | test_emptyentry_translated(self) checks that if we translate an empty definition it makes it into the 
      PO
 | source code |  | 
    |  | 
        
          | test_newlines_in_value(self) check that we can carry newlines that appear in the entry value into 
      the PO
 | source code |  | 
    |  | 
        
          | test_spaces_in_name(self) checks that if we have spaces in the name we create a good PO with no
      spaces
 | source code |  |