[00:01:40] gigimon is now away
[00:01:43] gigimon is now online
[00:04:55] madmercen is now online
[00:05:38] madmercen is now offline
[00:13:19] levsha is now offline
[00:17:44] Tony is now away
[00:20:33] gigimon is now online
[00:23:20] gigimon is now online
[00:27:44] Tony is now online
[00:31:11] levsha is now online
[00:34:36] gigimon is now online
[00:39:17] gigimon is now away
[00:41:52] levsha is now online
[00:54:45] levsha is now online
[00:56:44] levsha is now offline
[01:20:39] fuzzy is now away
[01:24:19] gigimon is now away
[01:24:40] gigimon is now online
[01:30:31] fuzzy is now away
[01:31:07] fuzzy is now away
[01:31:57] fuzzy is now online
[01:38:34] gigimon is now online
[01:40:10] fuzzy is now away
[01:43:31] gigimon is now away
[01:45:11] fuzzy is now away
[01:48:32] fuzzy is now away
[01:49:04] fuzzy is now online
[01:53:12] mrDoctorWho is now away
[02:02:45] madmercen is now online
[02:07:34] madmercen is now xa
[02:07:40] madmercen is now online
[02:10:11] remo is now online
[02:13:12] mrDoctorWho is now xa
[02:22:30] remo is now away
[02:25:05] madmercen is now xa
[02:25:11] madmercen is now online
[02:27:04] madmercen is now offline
[02:44:08] remo is now online
[03:04:32] remo is now away
[03:34:42] : Используемый вами псевдоним не зарегистрирован
[03:34:42] Сволота is now online
[03:34:42] Tony is now online
[03:34:42] remo is now away
[03:34:42] mrDoctorWho is now xa
[03:34:42] gigimon is now away
[03:34:42] fuzzy is now online
[03:34:42] AlexZenon is now xa
[03:34:42] magic_pony is now online
[03:34:42] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[03:41:28] gigimon is now away
[03:47:07] remo is now online
[03:47:18] remo: 0
[03:58:35] remo: fuzzy: только всёравно разница конечно капитальная между этими двумя способами реализации
[03:59:02] remo: вообще в принципе так не должно быть. прям 88 секунд и 56
[03:59:16] fuzzy is now online
[03:59:19] fuzzy is now online
[04:00:02] fuzzy is now away
[04:09:24] gigimon is now online
[04:11:18] fuzzy is now away
[04:11:31] fuzzy is now away
[04:12:11] Сволота is now away
[04:12:56] remo is now away
[04:13:08] remo is now offline
[04:13:13] fuzzy is now away
[04:14:11] Сволота is now online
[04:14:51] fuzzy is now away
[04:16:10] gigimon is now offline
[04:17:15] fuzzy is now online
[04:25:37] ambush is now online
[04:28:44] fuzzy is now away
[04:38:29] fuzzy is now away
[04:46:15] ambush is now offline
[04:56:18] fuzzy is now away
[05:02:37] Сволота is now away
[05:03:25] Сволота is now online
[05:06:19] fuzzy is now away
[05:08:27] Сволота is now away
[05:13:33] Сволота is now online
[05:18:18] fuzzy is now away
[05:18:49] fuzzy is now away
[05:22:59] Сволота is now away
[05:32:59] Сволота is now xa
[05:36:29] Сволота is now online
[05:49:29] Сволота is now away
[05:54:49] Сволота is now online
[05:59:49] Сволота is now away
[06:04:53] Сволота is now online
[06:11:19] fuzzy is now away
[06:11:45] Сволота is now away
[06:12:20] fuzzy is now away
[06:17:53] Сволота is now online
[06:22:59] Сволота is now away
[06:23:56] огыешсук is now online
[06:24:47] Сволота is now online
[06:39:47] огыешсук is now online
[06:40:30] огыешсук is now online
[06:40:45] Сволота is now away
[06:43:43] Сволота is now online
[06:45:21] fuzzy is now away
[06:46:42] fuzzy is now away
[06:50:32] огыешсук is now online
[06:51:07] огыешсук is now online
[07:01:32] огыешсук is now online
[07:01:59] Сволота is now away
[07:03:37] огыешсук is now online
[07:06:53] Сволота is now online
[07:13:49] огыешсук is now online
[07:18:54] огыешсук is now away
[07:19:21] огыешсук is now online
[07:26:45] Сволота is now away
[07:29:33] Сволота is now online
[07:33:57] огыешсук is now online
[07:37:03] огыешсук is now online
[07:47:13] огыешсук is now online
[07:51:08] огыешсук is now offline
[07:58:14] Tony is now away
[08:01:55] Сволота is now away
[08:06:17] Сволота is now online
[08:16:17] Сволота is now away
[08:20:53] mrDoctorWho is now online
[08:23:14] Tony is now xa
[08:26:17] Сволота is now xa
[08:54:11] tranq is now online
[08:54:17] Сволота is now online
[09:00:55] Сволота is now away
[09:03:53] Сволота is now online
[09:08:59] Сволота is now away
[09:12:59] Сволота is now online
[09:18:01] Сволота is now away
[09:20:05] Сволота is now online
[09:24:18] Tony is now online
[09:27:15] огыешсук is now online
[09:29:33] fuzzy is now away
[09:37:20] Сволота is now away
[09:39:41] огыешсук is now offline
[09:47:20] Сволота is now xa
[10:04:34] tranq is now offline
[10:05:46] mrDoctorWho is now offline
[10:06:30] levsha is now online
[10:10:59] mrDoctorWho is now online
[10:15:06] levsha is now offline
[10:17:11] levsha is now online
[10:19:04] Сволота is now online
[10:23:23] levsha is now offline
[10:24:06] Сволота is now away
[10:34:06] Сволота is now xa
[10:45:16] Сволота is now online
[10:50:16] Сволота is now away
[10:53:10] Сволота is now online
[10:54:17] levsha is now online
[10:54:42] levsha is now offline
[10:58:41] fuzzy is now away
[11:04:36] Сволота is now away
[11:09:11] fuzzy is now away
[11:14:36] Сволота is now xa
[11:35:40] AlexZenon is now online
[11:36:30] fuzzy is now away
[11:51:05] tranq is now online
[11:59:33] tranq is now away
[12:14:27] tranq is now online
[12:24:46] SystemV is now online
[12:27:59] tranq: как в юнит-тестинге "обнулить" состояние тестироваемого класса, например есть класс Order, каждый раз когда создаётся экземпляр этого класса, каждому обьекту присваеватся ID инкрементально, так вот, как можно сделать так что б каждый раз когда выполнялся test_* то этот класс не хранил state предедущего теста?
[12:31:35] tranq: чёт заработало
[12:37:20] tranq: не не работает. использую стандартный unittest модуль питона.
[12:56:37] SystemV is now away
[13:02:49] ambush is now online
[13:04:25] fuzzy is now away
[13:09:00] Сволота is now online
[13:09:04] fuzzy is now away
[13:14:04] Сволота is now away
[13:16:37] SystemV is now xa
[13:18:09] SystemV is now online
[13:23:51] mrDoctorWho is now away
[13:24:04] Сволота is now xa
[13:24:33] mrDoctorWho is now online
[13:24:54] fuzzy is now away
[13:27:00] fuzzy is now away
[13:28:30] fuzzy is now away
[13:28:33] fuzzy is now away
[13:29:18] fuzzy: tranq: def setUp(self): Order.next_id=0
[13:30:35] tranq: в этом случае да, но если у меня несколько таких переменных то это как-то проблематично
[13:31:39] tranq: хотелось бы чтоб Order был бы изолирован для каждого test_*()
[13:31:42] Сволота is now online
[13:34:30] SystemV is now away
[13:35:47] SystemV is now online
[13:36:24] tranq: похоже def setUp(self): reload(Order) решает это
[13:36:44] Сволота is now away
[13:37:00] fuzzy is now away
[13:37:11] tranq: ээ т.е не reload(Order) а reload модуль где Order находится
[13:46:44] Сволота is now xa
[13:47:00] Сволота is now online
[13:53:56] Сволота is now away
[13:54:40] Сволота is now online
[13:54:48] fuzzy is now away
[13:59:40] Сволота is now away
[13:59:57] fuzzy: твоя проблема в том, что ты хранишь состояние в класса
[13:59:58] fuzzy: е
[14:00:39] fuzzy: но если много уже, то сделай какой-то @classmethod def reset_class(cls): cls.next_id = 0 ....
[14:02:25] SystemV is now away
[14:03:08] Сволота is now online
[14:08:10] Сволота is now away
[14:09:43] SystemV is now online
[14:12:10] Сволота is now online
[14:17:48] Сволота is now away
[14:17:52] fuzzy is now away
[14:19:22] Сволота is now online
[14:21:59] огыешсук is now online
[14:25:12] Сволота is now away
[14:25:25] fuzzy is now online
[14:32:36] tranq: можно и так. странно это, почему это нужно делать руками, помоему вполне логично если бы каждый раз когда test_() выполнялся он бы импортировал модули заново а то получается изменил в одном тесте одну переменную а в пятом тесте из за этой переменной тест падает так как ты забыл её вернуть в предедущие состояние.
[14:33:33] fuzzy is now online
[14:35:12] Сволота is now xa
[14:36:16] Сволота is now online
[14:36:57] gigimon is now online
[14:41:16] Сволота is now away
[14:43:39] fuzzy is now online
[14:49:04] ambush is now away
[14:51:16] Сволота is now xa
[14:52:29] огыешсук is now online
[14:53:07] ambush is now online
[14:57:27] огыешсук is now away
[15:02:07] fuzzy: это проблема в дизайне твоего класса
[15:02:46] fuzzy: проблему с тестами можно было бы решить, но проблема в дизайне класса останется
[15:03:54] Сволота is now online
[15:08:58] Сволота is now away
[15:10:00] tranq: ээ, а в чем проблема хранить состояние класса используя переменные класса? ведь для этого они и нужны, например, сохранить количество созданных обьектов или например константы.
[15:11:00] Сволота is now online
[15:12:58] fuzzy: с константами проблемы нет
[15:13:16] fuzzy: с атрибутами, которые один раз нициализируешь и они после этого реюзаются - тоже нет
[15:13:34] fuzzy: если тебе действительно надо хранить количество объектов (что странно), то таки обнуляй руками
[15:17:52] Сволота is now away
[15:20:23] mrDoctorWho is now offline
[15:20:26] mrDoctorWho is now online
[15:27:34] SystemV is now away
[15:27:52] Сволота is now xa
[15:30:15] огыешсук is now offline
[15:31:52] SystemV is now online
[15:33:28] tranq is now away
[15:33:28] tranq is now away
[15:35:13] tranq is now online
[15:36:47] fuzzy is now online
[15:40:21] tranq is now away
[15:43:04] Сволота is now online
[15:44:40] SystemV is now away
[15:44:50] tranq is now online
[15:50:00] tranq is now away
[15:50:57] gigimon is now offline
[15:52:09] gigimon is now online
[15:55:03] tranq is now online
[15:55:51] ambush is now away
[16:00:05] tranq is now away
[16:01:25] gigimon is now offline
[16:01:53] mrDoctorWho is now away
[16:04:08] tranq is now online
[16:04:35] Tony is now away
[16:04:40] SystemV is now xa
[16:05:51] ambush is now xa
[16:06:25] ambush is now online
[16:08:55] mrDoctorWho is now offline
[16:08:55] mrDoctorWho is now online
[16:09:18] tranq is now away
[16:13:33] tranq is now online
[16:14:45] ambush is now away
[16:18:55] tranq is now away
[16:23:58] tranq is now online
[16:24:45] ambush is now xa
[16:25:20] remo is now online
[16:29:00] tranq is now away
[16:29:34] Tony is now xa
[16:31:37] ambush is now online
[16:34:07] tranq is now online
[16:34:18] mrDoctorWho is now away
[16:37:20] ambush is now away
[16:39:06] tranq is now away
[16:40:04] remo is now away
[16:44:09] tranq is now online
[16:47:19] ambush is now xa
[16:50:44] mrDoctorWho is now offline
[16:50:55] ambush is now online
[17:00:07] tranq is now away
[17:00:58] tranq is now online
[17:12:34] tranq is now away
[17:17:40] tranq is now online
[17:22:42] tranq is now away
[17:22:49] remo is now offline
[17:27:45] tranq is now online
[17:27:54] Tony is now online
[17:32:47] tranq is now away
[17:32:53] ambush is now away
[17:35:43] AlexZenon is now offline
[17:35:55] AlexZenon is now online
[17:37:50] tranq is now online
[17:42:51] tranq is now away
[17:42:53] ambush is now xa
[17:44:00] tranq is now online
[17:44:25] ambush is now online
[17:55:22] tranq is now offline
[17:57:12] tranq is now online
[18:02:06] fuzzy is now online
[18:02:09] fuzzy is now online
[18:05:43] огыешсук is now online
[18:06:08] fuzzy is now away
[18:08:44] fuzzy is now online
[18:16:12] огыешсук is now online
[18:18:36] fuzzy is now online
[18:19:27] огыешсук is now online
[18:27:34] SystemV is now online
[18:28:40] fuzzy is now online
[18:30:09] fuzzy is now away
[18:35:23] fuzzy is now online
[18:35:55] огыешсук is now online
[18:50:27] SystemV is now away
[18:59:35] SystemV is now online
[19:02:36] mrDoctorWho is now online
[19:10:45] огыешсук is now offline
[19:15:17] fuzzy is now away
[19:20:46] ambush is now offline
[19:21:04] ambush is now away
[19:51:08] : Используемый вами псевдоним не зарегистрирован
[19:51:08] Сволота is now online
[19:51:08] Tony is now online
[19:51:08] SystemV is now online
[19:51:08] tranq is now online
[19:51:08] mrDoctorWho is now online
[19:51:08] ambush is now away
[19:51:08] AlexZenon is now online
[19:51:08] fuzzy is now away
[19:51:08] magic_pony is now online
[19:51:08] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[19:52:11] fuzzy is now away
[20:03:03] SystemV is now away
[20:08:04] fuzzy is now away
[20:19:55] gigimon is now online
[20:20:50] SystemV is now online
[20:38:29] fuzzy is now away
[20:47:39] mrDoctorWho is now offline
[20:55:16] mrDoctorWho is now online
[20:59:32] mrDoctorWho is now offline
[21:01:24] mrDoctorWho is now online
[21:07:29] levsha is now online
[21:10:22] Tony is now away
[21:14:41] levsha is now offline
[21:16:04] fuzzy is now away
[21:22:46] levsha is now online
[21:27:07] gigimon is now offline
[21:31:09] SystemV is now away
[21:35:21] Tony is now xa
[21:44:17] SystemV is now online
[21:56:46] levsha is now away
[21:57:16] levsha is now offline
[21:57:32] levsha is now away
[21:57:33] levsha is now online
[22:13:54] levsha is now away
[22:14:17] levsha is now online
[22:22:04] tranq is now away
[22:23:18] SystemV is now away
[22:23:32] levsha is now away
[22:24:06] levsha is now online
[22:24:16] tranq is now online
[22:24:26] mrDoctorWho is now away
[22:26:11] SystemV is now online
[22:27:06] levsha is now offline
[22:28:55] mrDoctorWho is now online
[22:29:22] levsha is now online
[22:30:02] fuzzy is now away
[22:34:30] Tony is now online
[22:39:50] levsha is now online
[22:42:05] fuzzy is now away
[22:42:44] SystemV is now away
[22:45:19] fuzzy is now online
[22:51:43] levsha is now online
[22:54:39] madmercen is now online
[22:59:42] tranq is now away
[22:59:47] fuzzy is now online
[22:59:52] fuzzy is now online
[23:02:44] SystemV is now xa
[23:06:21] tranq is now online
[23:08:25] SystemV is now online
[23:10:37] levsha is now online
[23:13:01] madmercen is now offline
[23:13:10] madmercen is now online
[23:18:34] Tony is now offline
[23:19:57] SystemV is now offline
[23:21:25] Tony is now online
[23:23:23] levsha is now online
[23:30:40] madmercen is now online
[23:35:14] madmercen is now offline
[23:36:12] madmercen is now online
[23:38:57] levsha is now online
[23:51:33] levsha is now online
[23:55:31] mrDoctorWho is now away
[23:57:29] madmercen is now offline
[23:58:12] madmercen is now online
[23:58:34] Сволота is now away