Little fixes in tests
This commit is contained in:
parent
b7920fa350
commit
0b2ecfc986
2 changed files with 21 additions and 1 deletions
|
|
@ -265,6 +265,19 @@ class TestWebModelMethods(unittest.TestCase):
|
|||
connection.close()
|
||||
|
||||
pass
|
||||
|
||||
def test_check_filter_list_str(self):
|
||||
|
||||
print('Check string list filtering')
|
||||
|
||||
connection=WebModel.connection()
|
||||
model=ExampleModel(connection)
|
||||
|
||||
str_filter=model.check_in_list_str('title', ['joan', 'piter', 'luiz"'])
|
||||
|
||||
self.assertEqual(str_filter, '("joan", "piter", "luiz"")')
|
||||
|
||||
connection.close()
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue