Example #1
0
 def test_get_searchable_attributes(self):
     attributes = Introspection.get_searchable_attributes(DummyClass())
     attributes = [attribute for attribute in attributes]
     assert_in('string', attributes)
     assert_in('integer', attributes)
     assert_in('float', attributes)
     assert_in('datetime', attributes)
     assert_in('bool', attributes)
     assert_in('unicode', attributes)
     assert_not_in('ipv4network', attributes)
     assert_not_in('_do_not_store', attributes)
     assert_in('custom_attribute', attributes)