コード例 #1
0
ファイル: test_filter.py プロジェクト: revoteon/umea
 def test_args(self):
     self.assertEqual(str(F(apple="fruit")), str(filterbuilder(F(apple="fruit"))))
コード例 #2
0
ファイル: test_filter.py プロジェクト: revoteon/umea
 def test_or(self):
     self.assertEqual("|(orange=color)(orange=fruit)", str(F(orange="color") | F(orange="fruit")))
コード例 #3
0
ファイル: test_filter.py プロジェクト: revoteon/umea
 def test_from_string(self):
     self.assertEqual("|(orange=color)(orange=fruit)", str(F.from_string("|(orange=color)(orange=fruit)")))
コード例 #4
0
ファイル: test_filter.py プロジェクト: revoteon/umea
 def test_and(self):
     self.assertEqual("&(orange=color)(orange=fruit)", str(F(orange="color") & F(orange="fruit")))
コード例 #5
0
ファイル: test_filter.py プロジェクト: revoteon/umea
 def test_not_equal(self):
     self.assertEqual("!(orange=color)", str(~F(orange="color")))
コード例 #6
0
ファイル: test_filter.py プロジェクト: revoteon/umea
 def test_equal(self):
     self.assertEqual("orange=color", str(F(orange="color")))
コード例 #7
0
ファイル: test_filter.py プロジェクト: revoteon/umea
 def test_args_and_kwargs(self):
     self.assertEqual(str(F(apple="fruit") & F(earth="round")), str(filterbuilder(F(apple="fruit"), earth="round")))
コード例 #8
0
ファイル: test_filter.py プロジェクト: revoteon/umea
 def test_multiple_args(self):
     self.assertEqual(str(F(apple="fruit") & F(apple="round")), str(filterbuilder(F(apple="fruit"), F(apple="round"))))