From: 
Subject: Debian changes

The Debian packaging of python-batinfo is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/python-batinfo
    % cd python-batinfo
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone python-batinfo`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/AUTHORS b/AUTHORS
index ea8a4aa..38403ae 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,2 +1,23 @@
+==========
+Developers
+==========
+
 Nicolas Hennion (aka) Nicolargo
 http://blog.nicolargo.com
+https://twitter.com/nicolargo
+nicolashennion@gmail.com
+PGP Fingerprint: 835F C447 3BCD 60E9 9200  2778 ABA4 D1AB 9731 6A3C
+PGP Public key:  gpg --keyserver pgp.mit.edu --recv-keys 0xaba4d1ab97316a3c
+
+============
+Contributors
+============
+
+Alexis Metaireau / https://github.com/ametaireau
+
+=========
+Packagers
+=========
+
+Philip Lacroix (philnx@posteo.de) for the Slackware (SlackBuild) package
+@fabaff for the Fedora package
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..65c5ca8
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,165 @@
+                   GNU LESSER GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+  This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+  0. Additional Definitions.
+
+  As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+  "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+  An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+  A "Combined Work" is a work produced by combining or linking an
+Application with the Library.  The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+  The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+  The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+  1. Exception to Section 3 of the GNU GPL.
+
+  You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+  2. Conveying Modified Versions.
+
+  If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+   a) under this License, provided that you make a good faith effort to
+   ensure that, in the event an Application does not supply the
+   function or data, the facility still operates, and performs
+   whatever part of its purpose remains meaningful, or
+
+   b) under the GNU GPL, with none of the additional permissions of
+   this License applicable to that copy.
+
+  3. Object Code Incorporating Material from Library Header Files.
+
+  The object code form of an Application may incorporate material from
+a header file that is part of the Library.  You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+   a) Give prominent notice with each copy of the object code that the
+   Library is used in it and that the Library and its use are
+   covered by this License.
+
+   b) Accompany the object code with a copy of the GNU GPL and this license
+   document.
+
+  4. Combined Works.
+
+  You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+   a) Give prominent notice with each copy of the Combined Work that
+   the Library is used in it and that the Library and its use are
+   covered by this License.
+
+   b) Accompany the Combined Work with a copy of the GNU GPL and this license
+   document.
+
+   c) For a Combined Work that displays copyright notices during
+   execution, include the copyright notice for the Library among
+   these notices, as well as a reference directing the user to the
+   copies of the GNU GPL and this license document.
+
+   d) Do one of the following:
+
+       0) Convey the Minimal Corresponding Source under the terms of this
+       License, and the Corresponding Application Code in a form
+       suitable for, and under terms that permit, the user to
+       recombine or relink the Application with a modified version of
+       the Linked Version to produce a modified Combined Work, in the
+       manner specified by section 6 of the GNU GPL for conveying
+       Corresponding Source.
+
+       1) Use a suitable shared library mechanism for linking with the
+       Library.  A suitable mechanism is one that (a) uses at run time
+       a copy of the Library already present on the user's computer
+       system, and (b) will operate properly with a modified version
+       of the Library that is interface-compatible with the Linked
+       Version.
+
+   e) Provide Installation Information, but only if you would otherwise
+   be required to provide such information under section 6 of the
+   GNU GPL, and only to the extent that such information is
+   necessary to install and execute a modified version of the
+   Combined Work produced by recombining or relinking the
+   Application with a modified version of the Linked Version. (If
+   you use option 4d0, the Installation Information must accompany
+   the Minimal Corresponding Source and Corresponding Application
+   Code. If you use option 4d1, you must provide the Installation
+   Information in the manner specified by section 6 of the GNU GPL
+   for conveying Corresponding Source.)
+
+  5. Combined Libraries.
+
+  You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+   a) Accompany the combined library with a copy of the same work based
+   on the Library, uncombined with any other library facilities,
+   conveyed under the terms of this License.
+
+   b) Give prominent notice with the combined library that part of it
+   is a work based on the Library, and explaining where to find the
+   accompanying uncombined form of the same work.
+
+  6. Revised Versions of the GNU Lesser General Public License.
+
+  The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+  Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+  If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
diff --git a/MANIFEST.in b/MANIFEST.in
index 37e4c74..a659298 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,2 +1,3 @@
 include AUTHORS
-include README.md
\ No newline at end of file
+include README.md
+include LICENSE
diff --git a/NEWS b/NEWS
index 607e692..19c370d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+* version 0.4.2 - Correct an issue on MANIFEST.in file
+* version 0.4.1 - Correct an issue on setup.py file
+* version 0.4 - Update for package manager
+* version 0.3 - PEP8 improvement
 * version 0.2 - No log on read file
 * version 0.1.9 - Correct an import issue with Python 3
 * Set log level to CRITICAL (by Nicolargo)
@@ -11,4 +15,4 @@
 * Add the MANIFEST.in file (by Nicolas Hennion)
 * Correct setup (by Nicolas Hennion)
 * version 0.1.2 (by Nicolas Hennion)
-* version 0.1.1 Correct setup.py (by Nicolas Hennion)
\ No newline at end of file
+* version 0.1.1 Correct setup.py (by Nicolas Hennion)
diff --git a/README.fr b/README.fr
new file mode 100644
index 0000000..da48145
--- /dev/null
+++ b/README.fr
@@ -0,0 +1,57 @@
+BatInfo
+=======
+
+Je souhaitais ajouter dans Glances un plugin permettant de superviser l'état des batteries. J'ai donc commencé à chercher une librairie Python permettant de s'acquiter le plus simplement possible de cette tache qui sous un système GNU/Linux consiste à analyser le répertoire /sys/class/power_supply maintenu à jour par le noyau Linux.
+Comme je n'ai pas trouvé mon bonheur, j'ai donc décidé de développer un librairie Python: BatInfo.
+
+Les sources de cette librairie sont disponible sur Github en licence LGPL. L'installation sur votre système peut se faire simplement via la librairie Pypi:
+
+    sudo pip install batinfo
+
+L'utilisation de la librairie dans vos développement Python est la suivante:
+
+On commence par inclure la librairie:
+
+    import batinfo
+
+Puis on créé une instance (bat) de la classe principale (batteries):
+
+    bat = batinfo.Batteries()
+
+On peut récupérer les données brutes (format JSON) en utilisant:
+
+    bat.stat
+    [{"status": "Full", "capacity": 50, "name": "CMB1", "uevent": "POWER_SUPPLY_NAME=CMB1\nPOWER_SUPPLY_STATUS=Full\nPOWER_SUPPLY_PRESENT=1\nPOWER_SUPPLY_TECHNOLOGY=Li-ion\nPOWER_SUPPLY_CYCLE_COUNT=0\nPOWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000\nPOWER_SUPPLY_VOLTAGE_NOW=12496000\nPOWER_SUPPLY_CURRENT_NOW=0\nPOWER_SUPPLY_CHARGE_FULL_DESIGN=5800000\nPOWER_SUPPLY_CHARGE_FULL=5800000\nPOWER_SUPPLY_CHARGE_NOW=3900000\nPOWER_SUPPLY_CAPACITY=100\nPOWER_SUPPLY_MODEL_NAME=CP293550-01\nPOWER_SUPPLY_MANUFACTURER=Fujitsu\nPOWER_SUPPLY_SERIAL_NUMBER=01A-Z100320001158Z", "alarm": 0, "charge_full": 5800000, "voltage_now": 12496000, "serial_number": "01A-Z100320001158Z", "cycle_count": 0, "current_now": 0, "charge_now": 3900000, "voltage_min_design": 10800000, "path": "/sys/class/power_supply/CMB1", "technology": "Li-ion", "manufacturer": "Fujitsu", "type": "Battery", "model_name": "CP293550-01", "present": 1, "charge_full_design": 5800000}]
+
+Les données brutes se présentent sous la forme d'une liste de dictionnaire (un dictionnaire par batterie présente sur votre système). Comme la plupart du temps les machines (portable) ont une seule batterie, on peut avoir le dictionnaire associé à cette première batterie avec:
+
+    bat.stat[0]
+    {"status": "Full", "capacity": 100, "name": "CMB1", "uevent": "POWER_SUPPLY_NAME=CMB1\nPOWER_SUPPLY_STATUS=Full\nPOWER_SUPPLY_PRESENT=1\nPOWER_SUPPLY_TECHNOLOGY=Li-ion\nPOWER_SUPPLY_CYCLE_COUNT=0\nPOWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000\nPOWER_SUPPLY_VOLTAGE_NOW=12496000\nPOWER_SUPPLY_CURRENT_NOW=0\nPOWER_SUPPLY_CHARGE_FULL_DESIGN=5800000\nPOWER_SUPPLY_CHARGE_FULL=5800000\nPOWER_SUPPLY_CHARGE_NOW=3900000\nPOWER_SUPPLY_CAPACITY=100\nPOWER_SUPPLY_MODEL_NAME=CP293550-01\nPOWER_SUPPLY_MANUFACTURER=Fujitsu\nPOWER_SUPPLY_SERIAL_NUMBER=01A-Z100320001158Z", "alarm": 0, "charge_full": 5800000, "voltage_now": 12496000, "serial_number": "01A-Z100320001158Z", "cycle_count": 0, "current_now": 0, "charge_now": 3900000, "voltage_min_design": 10800000, "path": "/sys/class/power_supply/CMB1", "technology": "Li-ion", "manufacturer": "Fujitsu", "type": "Battery", "model_name": "CP293550-01", "present": 1, "charge_full_design": 5800000}
+
+Les statistiques présentes dans le dictionnaire dépende de votre batterie. Mais on retrouve un certain nombre d'informations génériques comme par exemple la capacité restante (en %):
+
+    bat.stat[0].capacity
+    50
+
+la capacité maximale:
+
+    bat.stat[0].charge_full
+    5800000
+
+ou encore la capacité courante:
+
+    bat.stat[0].charge_now
+    3900000
+
+On peut aussi avoir des informations constructeurs:
+
+    bat.stat[0].manufacturer
+    'Fujitsu'
+    bat.stat[0].technology
+    'Li-ion'
+
+Pour mettre à jour les stats:
+
+    bat.update()
+
+En espérant que cette librairie soit utile à certains. Il ne me reste plus, pour ma part, qu'à intégrer cela dans Glances.
\ No newline at end of file
diff --git a/README.md b/README.md
index 5de247a..f683b1e 100644
--- a/README.md
+++ b/README.md
@@ -1,16 +1,16 @@
 BatInfo
 =======
 
-Is a simple Python lib to retreive battery information on Linux based operating system.
+A simple Python module to retrieve battery information on Linux-based operating system.
 No ACPI or external software is needed.
-Only the Linux kernel and its /sys/class/power_supply folder.
+Only the Linux kernel and its `/sys/class/power_supply` folder.
 
-A simple example says better than words:
+A simple example says more than thousand words:
 
     In [1]: import batinfo
-    In [2]: bat = batinfo.batteries()
+    In [2]: bat = batinfo.Batteries()
     In [3]: bat
-    Out[3]: <batinfo.battery.batteries at 0x31c87d0>
+    Out[3]: <batinfo.Battery.Batteries at 0x31c87d0>
     In [4]: bat.stat
     Out[4]: [{"status": "Full", "capacity": 50, "name": "CMB1", "uevent": "POWER_SUPPLY_NAME=CMB1\nPOWER_SUPPLY_STATUS=Full\nPOWER_SUPPLY_PRESENT=1\nPOWER_SUPPLY_TECHNOLOGY=Li-ion\nPOWER_SUPPLY_CYCLE_COUNT=0\nPOWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000\nPOWER_SUPPLY_VOLTAGE_NOW=12496000\nPOWER_SUPPLY_CURRENT_NOW=0\nPOWER_SUPPLY_CHARGE_FULL_DESIGN=5800000\nPOWER_SUPPLY_CHARGE_FULL=5800000\nPOWER_SUPPLY_CHARGE_NOW=3900000\nPOWER_SUPPLY_CAPACITY=100\nPOWER_SUPPLY_MODEL_NAME=CP293550-01\nPOWER_SUPPLY_MANUFACTURER=Fujitsu\nPOWER_SUPPLY_SERIAL_NUMBER=01A-Z100320001158Z", "alarm": 0, "charge_full": 5800000, "voltage_now": 12496000, "serial_number": "01A-Z100320001158Z", "cycle_count": 0, "current_now": 0, "charge_now": 3900000, "voltage_min_design": 10800000, "path": "/sys/class/power_supply/CMB1", "technology": "Li-ion", "manufacturer": "Fujitsu", "type": "Battery", "model_name": "CP293550-01", "present": 1, "charge_full_design": 5800000}]
     In [6]: bat.stat[0]
@@ -30,4 +30,4 @@ A simple example says better than words:
     In [12]: bat.update()
     > Refresh the stats
 
-Have fun...
\ No newline at end of file
+Have fun...
diff --git a/batinfo/__init__.py b/batinfo/__init__.py
index 8031fb9..3e64d91 100644
--- a/batinfo/__init__.py
+++ b/batinfo/__init__.py
@@ -1,10 +1,9 @@
-#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #
 # BatInfo
-# A simple Python lib to retreive battery information
+# A simple Python lib to retrieve battery information
 #
-# Copyright (C) 2014 Nicolargo <nicolas@nicolargo.com>
+# Copyright (C) 2016 Nicolargo <nicolas@nicolargo.com>
 #
 # BatInfo is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
@@ -20,10 +19,14 @@
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 
 __appname__ = "batinfo"
-__version__ = "0.2"
+__version__ = "0.4.2"
 __author__ = "Nicolas Hennion <nicolas@nicolargo.com>"
-__licence__ = "LGPL"
+__licence__ = "LGPLv3"
 
-__all__ = ['batteries', 'battery']
+__all__ = ['batteries', 'battery', 'Batteries', 'Battery']
 
-from batinfo.battery import battery, batteries
+from batinfo.battery import Battery, Batteries
+
+# Let the old names for compatibility
+battery = Battery
+batteries = Batteries
diff --git a/batinfo/battery.py b/batinfo/battery.py
index 0e26c32..f536e39 100644
--- a/batinfo/battery.py
+++ b/batinfo/battery.py
@@ -1,8 +1,7 @@
-#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #
 # Batinfo
-# A simple Python lib to retreive battery information
+# A simple Python lib to retrieve battery information
 #
 # Copyright (C) 2014 Nicolargo <nicolas@nicolargo.com>
 #
@@ -19,15 +18,16 @@
 # You should have received a copy of the GNU Lesser General Public License
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 
-import os
-import logging
 import json
+import logging
+import os
 
 logging.basicConfig()
 log = logging.getLogger(__name__)
 log.setLevel(logging.CRITICAL)
 
-class battery(object):
+
+class Battery(object):
     """
     Battery stats
     """
@@ -35,7 +35,7 @@ class battery(object):
     def __init__(self, path="/sys/class/power_supply", name="BAT0"):
         self.path = os.path.join(path, name)
         self.name = name
-        self.__update__()          
+        self.__update__()
 
     def __str__(self):
         self.__update__()
@@ -74,7 +74,7 @@ class battery(object):
         stats = [f for f in os.listdir(self.path)
                  if os.path.isfile(os.path.join(self.path, f))]
         for stat in stats:
-            #~ print("%s = %s" % (stat, self.__get_stat__(stat)))
+            # ~ print("%s = %s" % (stat, self.__get_stat__(stat)))
             value = self.__get_stat__(stat)
             try:
                 # Try to convert to integer
@@ -83,13 +83,14 @@ class battery(object):
                 # Not possible, not a problem
                 pass
             setattr(self, stat, value)
-        if ('capacity' not in stats and 'charge_full' in stats
-        and 'charge_now' in stats) :
+        if ('capacity' not in stats and
+                'charge_full' in stats and
+                'charge_now' in stats):
             value = self.charge_now*100/self.charge_full
             setattr(self, 'capacity', value)
 
 
-class batteries(object):
+class Batteries(object):
     """
     Class to retreive stats of all the batteries
     List of battery (class)
@@ -109,7 +110,7 @@ class batteries(object):
         # Find all the batteries in the bat_root_path folder
         # It's a battery if the file "type" exist
         # and contain "Battery"
-        for dirname in os.listdir(self.bat_root_path):
+        for dirname in sorted(os.listdir(self.bat_root_path)):
             type_file = os.path.join(self.bat_root_path, dirname, "type")
             if (os.path.isfile(type_file)):
                 try:
@@ -120,7 +121,10 @@ class batteries(object):
                 if (is_bat):
                     # It is a battery, let's add it to the list
                     # print("Add the battery %s to the list" % dirname)
-                    self.stat.append(battery(self.bat_root_path, dirname))
+                    self.stat.append(Battery(self.bat_root_path, dirname))
 
     def __len__(self):
         return len(self.stat)
+
+    def __iter__(self):
+        return iter(self.stat)
diff --git a/setup.py b/setup.py
index b557464..c550adc 100755
--- a/setup.py
+++ b/setup.py
@@ -6,25 +6,28 @@
 
 from setuptools import setup
 
-data_files = [
-    ('share/doc/batinfo', ['AUTHORS', 'README.md'])
-]
+
+def get_data_files():
+    data_files = [
+        ('share/doc/batinfo', ['AUTHORS', 'README.md', 'LICENSE'])
+    ]
+
+    return data_files
 
 setup(
     name='batinfo',
-    version='0.2',
-    description="A simple Python lib to retreive battery information",
+    version='0.4.2',
+    description="A simple Python module to retrieve battery information",
     author='Nicolas Hennion',
     author_email='nicolas@nicolargo.com',
     url='https://github.com/nicolargo/batinfo',
-    #download_url='https://s3.amazonaws.com/batinfo/batinfo-0.2.tar.gz',
-    license="LGPL",
+    license="LGPLv3",
     keywords="lib battery",
     packages=['batinfo'],
     include_package_data=True,
-    data_files=data_files,
+    data_files=get_data_files(),
     classifiers=[
-        'Development Status :: 4 - Beta',
+        'Development Status :: 5 - Production/Stable',
         'Environment :: Console',
         'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
         'Operating System :: OS Independent',
diff --git a/test_batinfo.py b/test_batinfo.py
index 29b8c23..de7f6e9 100644
--- a/test_batinfo.py
+++ b/test_batinfo.py
@@ -19,32 +19,39 @@
 # You should have received a copy of the GNU Lesser General Public License
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 
-from batinfo import batteries
+from batinfo import Batteries
 import unittest
 
 
 class TestBatInfo(unittest.TestCase):
 
     def setUp(self):
-        self.bat = batteries(bat_root_path="./test")
+        self.bat = Batteries(bat_root_path="./test")
 
-    def test_BatInfo_get(self):
+    def test_batinfo_get(self):
         self.assertTrue(len(self.bat) == 2)
 
-    def test_BatInfo_name_default(self):
-        # print("Battery name: %s" % self.bat.stat().name)
+    def test_batinfo_name_default(self):
+        # print("Battery name: %s" % self.bat.stat[0].name)
         self.assertTrue(type(self.bat.stat[0].name) == str)
-        self.assertTrue(self.bat.stat[0].name == "battery")
+        self.assertTrue(self.bat.stat[0].name == "BAT1")
 
-    def test_BatInfo_capacity(self):
-        # print("Battery capacity: %s" % self.bat.stat().capacity)
+    def test_batinfo_capacity(self):
+        # print("Battery capacity: %s" % self.bat.stat[0].capacity)
         self.assertTrue(type(self.bat.stat[0].capacity) == int)
-        self.assertTrue(self.bat.stat[0].capacity == 53)
+        self.assertTrue(self.bat.stat[0].capacity == 34)
 
-    def test_BatInfo_charge_now(self):
-        # print("Battery 2 charge_now: %s" % self.bat.stat().charge_now)
+    def test_batinfo_charge_now(self):
+        # print("Battery 2 charge_now: %s" % self.bat.stat[1].charge_now)
         self.assertTrue(type(self.bat.stat[1].charge_now) == int)
-        self.assertTrue(self.bat.stat[1].charge_now == 1972000)
+        self.assertTrue(self.bat.stat[1].charge_now == 3074000)
+
+    def test_the_batteries_api_is_iterable(self):
+        batteries_count = 0
+        for bat in self.bat:
+            batteries_count += 1
+        self.assertEqual(batteries_count, 2)
+
 
 if __name__ == '__main__':
     unittest.main()
