Exemplo n.º 1
0
 def test_parse_header(self):
     """Fields from XML header tag should be available as dict."""
     data = parse_header(self.header)
     self.assertEqual(data.get('application'), 'my Grandma')
     self.assertEqual(data.get('version'), 'has')
     self.assertEqual(data.get('reference'), 'furry')
     self.assertEqual(data.get('query_letters'), 27)
     self.assertEqual(data.get('database'), 'Cats')
Exemplo n.º 2
0
 def test_parse_header(self):
     """Fields from XML header tag should be available as dict."""
     data = parse_header(self.header)
     self.assertEqual(data.get('application'), 'my Grandma')
     self.assertEqual(data.get('version'), 'has')
     self.assertEqual(data.get('reference'), 'furry')
     self.assertEqual(data.get('query_letters'), 27)
     self.assertEqual(data.get('database'), 'Cats')
Exemplo n.º 3
0
 def test_parse_header_complete(self):
     """Fields from header+param tag should be available as dict."""
     # try to process header with parameters etc in the XML
     data = parse_header(self.complete)
     self.assertEqual(data.get('database'), 'Cats')
     self.assertEqual(data.get('matrix'), 'BLOSUM62')
Exemplo n.º 4
0
 def test_parse_header_complete(self):
     """Fields from header+param tag should be available as dict."""
     # try to process header with parameters etc in the XML
     data = parse_header(self.complete)
     self.assertEqual(data.get('database'), 'Cats')
     self.assertEqual(data.get('matrix'), 'BLOSUM62')