def test_check_handle_syntax_with_index_onlyindex(self):
     """Handle Syntax: Exception if no prefix and suffix."""
     with self.assertRaises(HandleSyntaxError):
         check_handle_syntax_with_index("onlyindex:")
 def test_check_handle_syntax_with_index_noindex(self):
     """Handle Syntax: Exception if index not existent."""
     with self.assertRaises(HandleSyntaxError):
         check_handle_syntax_with_index("index/missing")
 def test_check_handle_syntax_with_index_twocolons(self):
     """Handle Syntax: Exception if two colons."""
     with self.assertRaises(HandleSyntaxError):
         check_handle_syntax_with_index("too:many:colons")
 def test_check_handle_syntax_with_index_nan(self):
     """Handle Syntax: Exception if index not a number."""
     with self.assertRaises(HandleSyntaxError):
         check_handle_syntax_with_index("nonumber:foo/bar")