Пример #1
0
 def test_unit__check_value__ok(self):
     mail_parts = BodyMailParts()
     a = BodyMailPart("a", BodyMailPartType.Main)
     mail_parts._check_value(a)
Пример #2
0
 def test_unit__check_value__ok(self):
     mail_parts = BodyMailParts()
     a = BodyMailPart('a', BodyMailPartType.Main)
     mail_parts._check_value(a)
Пример #3
0
 def test_unit__check_value__type_error(self):
     mail_parts = BodyMailParts()
     with pytest.raises(TypeError):
         mail_parts._check_value("a")
Пример #4
0
 def test_unit__check_value__type_error(self):
     mail_parts = BodyMailParts()
     with pytest.raises(TypeError):
         mail_parts._check_value('a')