'Test setup.'

@patch('socket.socket')
def test_setup(self, mock_socket):

    assert setup_component(self.hass, graphite.DOMAIN, {'graphite': {}})
    self.assertEqual(mock_socket.call_count, 1)
    self.assertEqual(mock_socket.call_args, mock.call(socket.AF_INET, socket.SOCK_STREAM))
