示例#1
0
 def test_moped_search(self):
     self.assertEquals(
         simplify_search_query(
             {
                 u'track_name': [u'explosions in the sky'],
                 u'any': [u'explosions in the sky']
             }
         ),
         'explosions in the sky explosions in the sky'
     )
示例#2
0
 def test_aria_search(self):
     self.assertEquals(simplify_search_query(['explosions', 'in the sky']),
                       'explosions in the sky')
示例#3
0
 def test_simple_search(self):
     self.assertEquals(simplify_search_query('explosions in the sky'),
                       'explosions in the sky')
示例#4
0
 def test_moped_search(self):
     self.assertEquals(
         simplify_search_query({
             u'track_name': [u'explosions in the sky'],
             u'any': [u'explosions in the sky']
         }), 'explosions in the sky explosions in the sky')
示例#5
0
 def test_mpc_search(self):
     self.assertEquals(
         simplify_search_query({u'any': [u'explosions in the sky']}),
         'explosions in the sky')
示例#6
0
 def test_aria_search(self):
     assert (simplify_search_query(["explosions", "in the sky"
                                    ]) == "explosions in the sky")
示例#7
0
 def test_simple_search(self):
     assert (simplify_search_query("explosions in the sky") ==
             "explosions in the sky")
示例#8
0
 def test_moped_search(self):
     assert (simplify_search_query({
         "track_name": ["explosions in the sky"],
         "any": ["explosions in the sky"],
     }) == "explosions in the sky explosions in the sky")
示例#9
0
 def test_mpc_search(self):
     assert (simplify_search_query({"any": ["explosions in the sky"]
                                    }) == "explosions in the sky")
示例#10
0
 def test_aria_search(self):
     self.assertEquals(
         simplify_search_query(['explosions', 'in the sky']),
         'explosions in the sky'
     )
示例#11
0
 def test_simple_search(self):
     self.assertEquals(
         simplify_search_query('explosions in the sky'),
         'explosions in the sky'
     )
示例#12
0
 def test_mpc_search(self):
     self.assertEquals(
         simplify_search_query({u'any': [u'explosions in the sky']}),
         'explosions in the sky'
     )