Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.assertEqual(p.classical_dict, inflect.def_classical)
p.classical()
self.assertEqual(p.classical_dict, inflect.all_classical)
self.assertRaises(TypeError, p.classical, 0)
self.assertRaises(TypeError, p.classical, 1)
self.assertRaises(TypeError, p.classical, "names")
self.assertRaises(TypeError, p.classical, "names", "zero")
self.assertRaises(TypeError, p.classical, "all")
p.classical(all=False)
self.assertEqual(p.classical_dict, inflect.no_classical)
p.classical(names=True, zero=True)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=1, zero=1))
self.assertEqual(p.classical_dict, mydict)
p.classical(all=True)
self.assertEqual(p.classical_dict, inflect.all_classical)
p.classical(all=False)
p.classical(names=True, zero=True)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=True, zero=True))
self.assertEqual(p.classical_dict, mydict)
p.classical(all=False)
p.classical(names=True, zero=False)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=True, zero=False))
mydict = inflect.def_classical.copy()
mydict.update(dict(names=1, zero=1))
self.assertEqual(p.classical_dict, mydict)
p.classical(all=True)
self.assertEqual(p.classical_dict, inflect.all_classical)
p.classical(all=False)
p.classical(names=True, zero=True)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=True, zero=True))
self.assertEqual(p.classical_dict, mydict)
p.classical(all=False)
p.classical(names=True, zero=False)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=True, zero=False))
self.assertEqual(p.classical_dict, mydict)
self.assertRaises(UnknownClassicalModeError, p.classical, bogus=True)
p.classical(0)
p.classical(names=1, zero=1)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=1,zero=1))
self.assertEqual(p.classical_dict, mydict)
p.classical(0)
p.classical('names', zero=1)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=1,zero=1))
self.assertEqual(p.classical_dict, mydict)
p.classical(0)
p.classical('names', zero=0)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=1,zero=0))
self.assertEqual(p.classical_dict, mydict)
self.assertRaises(UnknownClassicalModeError, p.classical, 'bogus', reallybogus=1)
self.assertRaises(TypeError, p.classical, 'all')
p.classical(all=False)
self.assertEqual(p.classical_dict, inflect.no_classical)
p.classical(names=True, zero=True)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=1, zero=1))
self.assertEqual(p.classical_dict, mydict)
p.classical(all=True)
self.assertEqual(p.classical_dict, inflect.all_classical)
p.classical(all=False)
p.classical(names=True, zero=True)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=True, zero=True))
self.assertEqual(p.classical_dict, mydict)
p.classical(all=False)
p.classical(names=True, zero=False)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=True, zero=False))
self.assertEqual(p.classical_dict, mydict)
self.assertRaises(UnknownClassicalModeError, p.classical, bogus=True)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=1,zero=1))
self.assertEqual(p.classical_dict, mydict)
p.classical('all')
self.assertEqual(p.classical_dict, inflect.all_classical)
p.classical(0)
p.classical(names=1, zero=1)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=1,zero=1))
self.assertEqual(p.classical_dict, mydict)
p.classical(0)
p.classical('names', zero=1)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=1,zero=1))
self.assertEqual(p.classical_dict, mydict)
p.classical(0)
p.classical('names', zero=0)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=1,zero=0))
self.assertEqual(p.classical_dict, mydict)
self.assertRaises(UnknownClassicalModeError, p.classical, 'bogus', reallybogus=1)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=1, zero=1))
self.assertEqual(p.classical_dict, mydict)
p.classical(all=True)
self.assertEqual(p.classical_dict, inflect.all_classical)
p.classical(all=False)
p.classical(names=True, zero=True)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=True, zero=True))
self.assertEqual(p.classical_dict, mydict)
p.classical(all=False)
p.classical(names=True, zero=False)
mydict = inflect.def_classical.copy()
mydict.update(dict(names=True, zero=False))
self.assertEqual(p.classical_dict, mydict)
self.assertRaises(UnknownClassicalModeError, p.classical, bogus=True)