'Verify that search method fails when an invalid type is passed.'

def test_invalid_search_type(self):

    search_args = {'type': 'foo', 'q': 'bar'}
    self.assertRaises(facebook.GraphAPIError, self.graph.search, search_args)
