This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from celery.contrib.testing import app as _app | |
| import mock | |
| import unittest | |
| import celery | |
| class TestCase(unittest.TestCase): | |
| def setUp(self): | |
| app = _app.TestApp( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import socket | |
| class Netcat: | |
| """ Python 'netcat like' module """ | |
| def __init__(self, ip, port): | |
| self.buff = "" | |
| self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |