MCPcopy
hub / github.com/gunthercox/ChatterBot / test_remove

Method test_remove

tests/storage/test_sql_adapter.py:116–122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114 self.adapter.get_random()
115
116 def test_remove(self):
117 text = "Sometimes you have to run before you can walk."
118 self.adapter.create(text=text)
119 self.adapter.remove(text)
120 results = self.adapter.filter(text=text)
121
122 self.assertEqual(list(results), [])
123
124
125class SQLStorageAdapterFilterTests(SQLStorageAdapterTestCase):

Callers

nothing calls this directly

Calls 3

createMethod · 0.45
removeMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected