# Path: fabdeploy/system.py
# class ExePython(Task):
# class CpuCount(ExePython):
# class OSCodename(ExePython):
# class PackageUpdate(Task):
# class PackageInstall(Task):
# class SetupBackports(Task):
#     def escaped_code(self):
#     def exe(self):
#     def do(self):
#     def code(self):
#     def cpu_count(self):
#     def do(self):
#     def code(self):
#     def os_codename(self):
#     def do(self):
#     def force(self):
#     def do(self):
#     def options(self):
#     def do(self):
#     def backports(self):
#     def do(self):
# BACKPORTS = {
#     'lenny': ('http://backports.debian.org/debian-backports '
#               'lenny-backports main contrib non-free'),
#     'squeeze': ('http://backports.debian.org/debian-backports '
#                 'squeeze-backports main contrib non-free'),
#     'precise': ('http://archive.ubuntu.com/ubuntu '
#               'precise-backports main universe multiverse restricted'),
#     'oneiric': ('http://archive.ubuntu.com/ubuntu '
#               'oneiric-backports main universe multiverse restricted'),
#     'natty': ('http://archive.ubuntu.com/ubuntu '
#               'natty-backports main universe multiverse restricted'),
#     'maverick': ('http://archive.ubuntu.com/ubuntu '
#                  'maverick-backports main universe multiverse restricted'),
#     'lucid': ('http://archive.ubuntu.com/ubuntu '
#               'lucid-backports main universe multiverse restricted'),
# }


import multiprocessing
from fabdeploy import system



def test_cpu_count():
    cpu_count = multiprocessing.cpu_count()
    with system.cpu_count.tmp_conf():

# Path: fabdeploy/system.py
# class ExePython(Task):
# class CpuCount(ExePython):
# class OSCodename(ExePython):
# class PackageUpdate(Task):
# class PackageInstall(Task):
# class SetupBackports(Task):
#     def escaped_code(self):
#     def exe(self):
#     def do(self):
#     def code(self):
#     def cpu_count(self):
#     def do(self):
#     def code(self):
#     def os_codename(self):
#     def do(self):
#     def force(self):
#     def do(self):
#     def options(self):
#     def do(self):
#     def backports(self):
#     def do(self):
# BACKPORTS = {
#     'lenny': ('http://backports.debian.org/debian-backports '
#               'lenny-backports main contrib non-free'),
#     'squeeze': ('http://backports.debian.org/debian-backports '
#                 'squeeze-backports main contrib non-free'),
#     'precise': ('http://archive.ubuntu.com/ubuntu '
#               'precise-backports main universe multiverse restricted'),
#     'oneiric': ('http://archive.ubuntu.com/ubuntu '
#               'oneiric-backports main universe multiverse restricted'),
#     'natty': ('http://archive.ubuntu.com/ubuntu '
#               'natty-backports main universe multiverse restricted'),
#     'maverick': ('http://archive.ubuntu.com/ubuntu '
#                  'maverick-backports main universe multiverse restricted'),
#     'lucid': ('http://archive.ubuntu.com/ubuntu '
#               'lucid-backports main universe multiverse restricted'),
# }


# Path: tests/test_system.py
import multiprocessing
from fabdeploy import system




def test_cpu_count():
    cpu_count = multiprocessing.cpu_count()
    with system.cpu_count.tmp_conf():

        assert system.cpu_count.cpu_count() == cpu_count