This file contains 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
casper.then(function() { | |
this.test.assertEval(function() { | |
$('[name="name"]').simulate("key-sequence", {sequence: "{selectall}Foobar"}); | |
return $('.title').text() == 'Foobar'; | |
}); | |
}); |
This file contains 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
Samedi matin : | |
* Processus de développement de CPython (Antoine Pitrou) | |
* La boite à outils pour Django (Ordoquy Xavier) | |
* Picasso, le polyglotte et le philosophe (Marc Chantreux) | |
* Je configure mes serveurs avec fabric et fabtools (Ronan Amicel) | |
Samedi après midi : | |
* OpenERP : gestion d'entreprise Open Source en Python (Alexandre ALLOUCHE) |
This file contains 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
class UserFactory(factory.Factory): | |
FACTORY_FOR = User | |
first_name = factory.InfiniteIterator([ 'Peggie', 'Gabe', 'King', 'Fredy', 'Ole', 'Vernice' ]) | |
last_name = factory.InfiniteIterator([ 'Leannon', 'Barton', 'Sauer', 'Walker', 'Strosin']) | |
username = factory.LazyAttribute( | |
lambda o: '%s.%s@example.com' % (o.first_name.lower(), o.last_name.lower()) | |
) | |
# How can I feed data in dict, metadata isn't another Entities (MongoDB context) |
This file contains 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
#!/bin/bash | |
# | |
# lxc: linux Container library | |
# Authors: | |
# Daniel Lezcano <daniel.lezcano@free.fr> | |
# This library is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU Lesser General Public |
This file contains 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 contextlib import nested | |
from fabric.api import task, run, settings, env | |
def switch_user(user): | |
return nested(settings( | |
user=user, | |
host_string="%s@%s:%s" % (user, env['host'], env['port']) | |
)) | |
@task |
NewerOlder