| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9579c06 commit 17b9e14
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -157,24 +157,23 @@ class TestDictKeyCompletion(unittest.TestCase): | |||
| 157 | 157 | ||
| 158 | 158 | def test_set_of_keys_returned_when_matches_found(self): | |
| 159 | 159 | com = autocomplete.DictKeyCompletion() | |
| 160 | - local={'d':{"ab":1, "cd":2},} | ||
| 161 | - com.matches(2,"d[" , local) | ||
| 162 | - self.assertSetEqual(com.matches(2,"d[" , local),set(["'ab']","'cd']"])) | ||
| 160 | + local = {'d': {"ab": 1, "cd": 2}} | ||
| 161 | + self.assertSetEqual(com.matches(2, "d[", local), set(["'ab']", "'cd']"])) | ||
| 163 | 162 | ||
| 164 | 163 | def test_empty_set_returned_when_eval_error(self): | |
| 165 | 164 | com = autocomplete.DictKeyCompletion() | |
| 166 | - local={'e':{"ab":1, "cd":2},} | ||
| 167 | - self.assertSetEqual(com.matches(2,"d[" , local),set()) | ||
| 165 | + local = {'e': {"ab": 1, "cd": 2}} | ||
| 166 | + self.assertSetEqual(com.matches(2, "d[", local), set()) | ||
| 168 | 167 | ||
| 169 | 168 | def test_empty_set_returned_when_not_dict_type(self): | |
| 170 | 169 | com = autocomplete.DictKeyCompletion() | |
| 171 | - local={'l':["ab", "cd"],} | ||
| 172 | - self.assertSetEqual(com.matches(2,"l[" , local),set()) | ||
| 170 | + local = {'l': ["ab", "cd"]} | ||
| 171 | + self.assertSetEqual(com.matches(2, "l[", local),set()) | ||
| 173 | 172 | ||
| 174 | 173 | def test_obj_that_does_not_allow_conversion_to_bool(self): | |
| 175 | 174 | com = autocomplete.DictKeyCompletion() | |
| 176 | - local={'mNumPy':MockNumPy(),} | ||
| 177 | - self.assertSetEqual(com.matches(7,"mNumPy[" , local), set()) | ||
| 175 | + local = {'mNumPy': MockNumPy()} | ||
| 176 | + self.assertSetEqual(com.matches(7, "mNumPy[", local), set()) | ||
| 178 | 177 | ||
| 179 | 178 | class Foo(object): | |
| 180 | 179 | a = 10 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments