Ejemplo n.º 1
0
 def test_unit__check_value__ok(self):
     mail_parts = BodyMailParts()
     a = BodyMailPart("a", BodyMailPartType.Main)
     mail_parts._check_value(a)
Ejemplo n.º 2
0
 def test_unit__check_value__ok(self):
     mail_parts = BodyMailParts()
     a = BodyMailPart('a', BodyMailPartType.Main)
     mail_parts._check_value(a)
Ejemplo n.º 3
0
 def test_unit__check_value__type_error(self):
     mail_parts = BodyMailParts()
     with pytest.raises(TypeError):
         mail_parts._check_value("a")
Ejemplo n.º 4
0
 def test_unit__check_value__type_error(self):
     mail_parts = BodyMailParts()
     with pytest.raises(TypeError):
         mail_parts._check_value('a')