def test_init_u(self): s = Sounds('pu') assert s.name == 'pu' assert s.values == set('pPbBm')
def test_len(self): assert len(Sounds('pu')) == 5
def test_init_vowel(self): for v in 'aAiIuUfFxX': s = Sounds(v) assert s.name == v assert s.values == Sound(v).savarna_set
def test_iter(self): s = Sounds('pu') i = 0 for x in s: i += 1 assert i == 5
def test_contains(self): s = Sounds('pu') assert 'p' in s
def test_init_multiple(self): name = 'a pu it' s = Sounds(name) assert s.name == name assert s.values == set('aApPbBmi')
def test_init_pratyahara(self): for name in ['aR', 'eN', 'ac', 'Jay', 'Yam', 'hal']: s = Sounds(name) assert s.name == name assert s.values == Pratyahara(name).values
def test_init_t(self): for v in 'aAiIuUfFxX': name = v + 't' s = Sounds(name) assert s.name == name assert s.values == set(v)