Snapshot permission updates.
This commit is contained in:
1 parent
414380740f
commit
d570b16b60
15 files changed
+540
-502
No files matched your search
+34
-34
@@ -1,34 +1,34 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import unittest
|
||||
|
||||
import dictionary
|
||||
|
||||
|
||||
class TestDictionary(unittest.TestCase):
|
||||
def test_empty(self):
|
||||
"""Verify we can get the default words."""
|
||||
words = dictionary.words()
|
||||
|
||||
def test_expected(self):
|
||||
"""Verify we have a few expected words."""
|
||||
words = dictionary.words()
|
||||
self.assertIn("cares", words)
|
||||
self.assertIn("fudge", words)
|
||||
|
||||
def test_unexpected(self):
|
||||
"""Verify we have a few expected words."""
|
||||
words = dictionary.words()
|
||||
self.assertNotIn("doray", words)
|
||||
self.assertNotIn("xxxxx", words)
|
||||
|
||||
def test_size(self):
|
||||
"""Verify all words are the expected length."""
|
||||
words = dictionary.words()
|
||||
|
||||
for word in words:
|
||||
self.assertEqual(len(word), dictionary.WORDLE_LENGTH)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
#!/usr/bin/python
|
||||
|
||||
import unittest
|
||||
|
||||
import dictionary
|
||||
|
||||
|
||||
class TestDictionary(unittest.TestCase):
|
||||
def test_empty(self):
|
||||
"""Verify we can get the default words."""
|
||||
words = dictionary.words()
|
||||
|
||||
def test_expected(self):
|
||||
"""Verify we have a few expected words."""
|
||||
words = dictionary.words()
|
||||
self.assertIn("cares", words)
|
||||
self.assertIn("fudge", words)
|
||||
|
||||
def test_unexpected(self):
|
||||
"""Verify we have a few expected words."""
|
||||
words = dictionary.words()
|
||||
self.assertNotIn("doray", words)
|
||||
self.assertNotIn("xxxxx", words)
|
||||
|
||||
def test_size(self):
|
||||
"""Verify all words are the expected length."""
|
||||
words = dictionary.words()
|
||||
|
||||
for word in words:
|
||||
self.assertEqual(len(word), dictionary.WORDLE_LENGTH)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user