'make sure starting a connection sets the correct class vars'

def test_on_connection_start(self):

    method_frame = mock.Mock()
    method_frame.method = mock.Mock()
    method_frame.method.mechanisms = str(credentials.PlainCredentials.TYPE)
    method_frame.method.version_major = 0
    method_frame.method.version_minor = 9
    method_frame.method.server_properties = {'capabilities': {'basic.nack': True, 'consumer_cancel_notify': False, 'exchange_exchange_bindings': False}}
    self.connection._flush_outbound = mock.Mock()
    self.connection._on_connection_start(method_frame)
    self.assertEqual(True, self.connection.basic_nack)
    self.assertEqual(False, self.connection.consumer_cancel_notify)
    self.assertEqual(False, self.connection.exchange_exchange_bindings)
    self.assertEqual(False, self.connection.publisher_confirms)
