def test_type_and_name(self): self.assertEqual(parse_query('/<float>asdf'), [{'type': 'float', 'name': 'asdf'}])
def test_type(self): self.assertEqual(parse_query('/<str>'), [{'type': 'str', 'name': ''}])
def test_two_fields(self): self.assertEqual(parse_query('/asdf/qwer'), [{'type': None, 'name': 'asdf'}, {'type': None, 'name': 'qwer'}])
def test_quoted(self): self.assertEqual(parse_query('/"asdf/qwer"'), [{'type': None, 'name': 'asdf/qwer'}])
def test_one_field(self): self.assertEqual(parse_query('/asdf'), [{'type': None, 'name': 'asdf'}])