def test_send_newline_first(self):
     r = Reply('250', 'Ok')
     r.newline_first = True
     io = IO(None)
     r.send(io)
     assert_equal('\r\n250 2.0.0 Ok\r\n', io.send_buffer.getvalue())
 def test_send_newline_first(self):
     r = Reply('250', 'Ok')
     r.newline_first = True
     io = IO(None)
     r.send(io)
     self.assertEqual(b'\r\n250 2.0.0 Ok\r\n', io.send_buffer.getvalue())
 def test_send(self):
     r = Reply('250', 'Ok')
     io = IO(None)
     r.send(io)
     assert_equal('250 2.0.0 Ok\r\n', io.send_buffer.getvalue())
 def test_send(self):
     r = Reply('250', 'Ok')
     io = IO(None)
     r.send(io)
     self.assertEqual(b'250 2.0.0 Ok\r\n', io.send_buffer.getvalue())